package com.wk.database;

import com.wk.database.entity.definition.Column;
import com.wk.database.entity.definition.ColumnType;
import com.wk.database.entity.definition.Condition;
import com.wk.database.entity.definition.PrimaryKey;
import com.wk.database.entity.definition.Table;

@Table("t_business_computing_resource_management")
public class UpdatedSlaveMachine {
	public UpdatedSlaveMachine(String ip, String state) {
		this.ip = ip;
		this.state = state;
	}

	@PrimaryKey
	@Column(name = "resource_ip_address", type = ColumnType.STRING)
	public String ip;

	@Column(name = "machine_status", type = ColumnType.STRING)
	@Condition("!= '" + MachineState.DEPRECATED + "'")
	public String state;
}
